import { Axios } from "./axios";
export const GETBLOGSLIST = (params) => {
  return Axios({
    url: "/vblog/api/v1/post/",
    method: "get",
    params: params,
  });
};
export const CREATEBLOG = (data) => {
  return Axios({
    url: "/vblog/api/v1/post/",
    method: "post",
    data: data,
  });
};
export const DETAILBLOG = (id) => {
  return Axios({
    url: `/vblog/api/v1/post/${id}`,
    method: "get",
  });
};
export const UPDATEBLOG = (id, data) => {
  return Axios({
    url: `/vblog/api/v1/post/${id}`,
    method: "PUT",
    data: data,
  });
};
export const DELETEBLOG = (id) => {
  return Axios({
    url: `/vblog/api/v1/post/${id}`,
    method: "DELETE",
  });
};
